<?php
if(!isset($_SESSION)) 
	{ 
		session_start(); 
	}
	if(!$_SESSION['usname'])
	{
		header( 'Location: ../index.php' );
	}
	else 
	{		
		$usname = $_SESSION['usname'];
		$role = $_SESSION['role'];
		$userid   = $_SESSION['iduser'];
		$vaction=$_SESSION['activeaction'];
		if($vaction=="admin"){
			header('Location: content-monitor-admin.php');
		}else if($vaction=="search"){
			header('Location: ../search/carnums.php');
		}else if($vaction=="view"){
			header( 'Location: ../index.php' );
		}
	}
?>